<template>
  <div id="app">
    <router-view></router-view>
    <FooterGuide v-if="$route.meta.showFooter"/>
  </div>
</template>

<script>
  import FooterGuide from './components/FooterGuide/FooterGuide'
  // 使用映射函数
  import {mapActions} from 'vuex'
  
  export default {
    name: 'App',
    mounted() {
      // this.$store.dispatch('getAddress')
      this.getAddress()
      this.getUserInfo()
    },
    methods: {
      ...mapActions(['getAddress', 'getUserInfo'])
    },
    components:{
      FooterGuide
    },
  }
</script>

<style lang="less">
  #app {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
  }
</style>
